package stdio.costa.moca.rest.exception;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;

public class RestfulExceptionMapper implements ExceptionMapper<AbstractRestfulException> {

	@Override
	public Response toResponse(AbstractRestfulException exception) {
		return Response.status(exception.getResponseStatus()).build();
	}
}
